.class public Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;
.super Lcom/esfile/screen/recorder/base/BaseActivity;
.source "MergeVideoAndImagePreviewActivity.java"


# static fields
.field private static m:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/esfile/screen/recorder/videos/merge/b0;",
            ">;"
        }
    .end annotation
.end field

.field private static n:Ljava/lang/Runnable;


# instance fields
.field private a:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

.field private b:Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;

.field private c:Landroid/widget/ImageView;

.field private d:Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImagePreviewController;

.field private e:Les/re;

.field protected f:Landroid/animation/ObjectAnimator;

.field protected g:Z

.field protected h:Landroid/os/Handler;

.field private i:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

.field private j:Lcom/esfile/screen/recorder/videos/merge/a0;

.field private k:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/videos/merge/b0;",
            ">;"
        }
    .end annotation
.end field

.field private l:Lcom/esfile/screen/recorder/videos/merge/a0$b;


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;-><init>()V

    .line 2
    new-instance v0, Landroid/os/Handler;

    new-instance v1, Lcom/esfile/screen/recorder/videos/merge/v;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/merge/v;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;)V

    invoke-direct {v0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Handler$Callback;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->h:Landroid/os/Handler;

    .line 3
    new-instance v0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity$b;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity$b;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->l:Lcom/esfile/screen/recorder/videos/merge/a0$b;

    return-void
.end method

.method static synthetic A()Ljava/lang/Runnable;
    .locals 1

    .line 1
    sget-object v0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->n:Ljava/lang/Runnable;

    return-object v0
.end method

.method private B()Z
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->k:Ljava/util/List;

    const/4 v1, 0x1

    if-eqz v0, :cond_0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-le v0, v1, :cond_0

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    return v1
.end method

.method private C()V
    .locals 2
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "ClickableViewAccessibility"
        }
    .end annotation

    .line 1
    sget v0, Les/x4;->merge_preview_player:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->a:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    .line 2
    sget v0, Les/x4;->merge_preview_image:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->b:Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;

    .line 3
    sget v0, Les/x4;->merge_preview_image_cover:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->c:Landroid/widget/ImageView;

    .line 4
    sget v0, Les/x4;->merge_preview_controller:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImagePreviewController;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->d:Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImagePreviewController;

    .line 5
    new-instance v1, Lcom/esfile/screen/recorder/videos/merge/u;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/merge/u;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->d:Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImagePreviewController;

    new-instance v1, Lcom/esfile/screen/recorder/videos/merge/s;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/merge/s;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImagePreviewController;->setOnBackClickListener(Landroid/view/View$OnClickListener;)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->d:Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImagePreviewController;

    new-instance v1, Lcom/esfile/screen/recorder/videos/merge/t;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/merge/t;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImagePreviewController;->setOnSaveClickListener(Landroid/view/View$OnClickListener;)V

    .line 8
    sget v0, Les/x4;->merge_preview_progress_view:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->i:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    .line 9
    new-instance v1, Lcom/esfile/screen/recorder/videos/merge/w;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/merge/w;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->setOnCancelClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method

.method private D()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->e:Les/re;

    invoke-virtual {v0}, Les/re;->f()V

    .line 2
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->y()V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->k:Ljava/util/List;

    if-nez v0, :cond_0

    .line 4
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->k:Ljava/util/List;

    .line 5
    :cond_0
    sget-object v0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->m:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_1
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/esfile/screen/recorder/videos/merge/b0;

    .line 6
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/videos/merge/b0;->f()I

    move-result v2

    const/4 v3, 0x2

    if-ne v2, v3, :cond_1

    .line 7
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->k:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_2
    const-string v0, "preview"

    .line 8
    invoke-static {v0}, Lcom/esfile/screen/recorder/videos/merge/c0;->b(Ljava/lang/String;)V

    .line 9
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->B()Z

    move-result v0

    if-nez v0, :cond_3

    .line 10
    sget v0, Les/z4;->durec_common_video_fail:I

    invoke-static {v0}, Les/ec;->a(I)V

    return-void

    .line 11
    :cond_3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->k:Ljava/util/List;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->f(Ljava/util/List;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 12
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->G()V

    goto :goto_1

    .line 13
    :cond_4
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->H()V

    :goto_1
    return-void
.end method

.method private E()V
    .locals 8

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->e:Les/re;

    if-nez v0, :cond_0

    .line 2
    new-instance v0, Les/re;

    invoke-direct {v0}, Les/re;-><init>()V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->e:Les/re;

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->b:Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;

    invoke-virtual {v0, v1}, Les/re;->a(Lcom/esfile/screen/recorder/videos/merge/ui/ImageViewPlayer;)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->e:Les/re;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->a:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    invoke-virtual {v0, v1}, Les/re;->a(Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->e:Les/re;

    new-instance v1, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity$a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity$a;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;)V

    invoke-virtual {v0, v1}, Les/re;->a(Les/re$b;)V

    .line 6
    :cond_0
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 7
    sget-object v1, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->m:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_1
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_4

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/esfile/screen/recorder/videos/merge/b0;

    .line 8
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->f()I

    move-result v3

    const/4 v4, 0x1

    if-ne v3, v4, :cond_2

    goto :goto_0

    .line 9
    :cond_2
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->i()Z

    move-result v3

    if-eqz v3, :cond_3

    .line 10
    new-instance v3, Les/qe;

    invoke-direct {v3}, Les/qe;-><init>()V

    .line 11
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->g()J

    move-result-wide v4

    iput-wide v4, v3, Les/qe;->a:J

    const-string v4, "image"

    .line 12
    iput-object v4, v3, Les/qe;->b:Ljava/lang/String;

    .line 13
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->a()J

    move-result-wide v4

    invoke-virtual {v3, v4, v5}, Les/qe;->a(J)V

    .line 14
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->d()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v3, Les/qe;->c:Ljava/lang/String;

    .line 15
    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 16
    :cond_3
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->j()Z

    move-result v3

    if-eqz v3, :cond_1

    .line 17
    new-instance v3, Les/qe;

    invoke-direct {v3}, Les/qe;-><init>()V

    .line 18
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->g()J

    move-result-wide v4

    iput-wide v4, v3, Les/qe;->a:J

    const-string v4, "video"

    .line 19
    iput-object v4, v3, Les/qe;->b:Ljava/lang/String;

    .line 20
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->a()J

    move-result-wide v4

    invoke-virtual {v3, v4, v5}, Les/qe;->a(J)V

    .line 21
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->d()Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Les/qe;->c:Ljava/lang/String;

    .line 22
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->e()Landroid/util/Pair;

    move-result-object v2

    .line 23
    iget-object v4, v2, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v4, Ljava/lang/Long;

    invoke-virtual {v4}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    iget-object v2, v2, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v2, Ljava/lang/Long;

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    invoke-virtual {v3, v4, v5, v6, v7}, Les/qe;->a(JJ)V

    .line 24
    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 25
    :cond_4
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->e:Les/re;

    sget-object v2, Lcom/esfile/screen/recorder/videos/merge/q;->a:Lcom/esfile/screen/recorder/videos/merge/q;

    invoke-virtual {v1, v2}, Les/re;->a(Les/re$c;)V

    .line 26
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->e:Les/re;

    invoke-virtual {v1}, Les/re;->c()I

    move-result v1

    const/4 v2, 0x2

    if-ne v1, v2, :cond_5

    .line 27
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->e:Les/re;

    invoke-virtual {v1}, Les/re;->f()V

    .line 28
    :cond_5
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->e:Les/re;

    invoke-virtual {v1, v0}, Les/re;->a(Ljava/util/List;)V

    .line 29
    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_6

    .line 30
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->e:Les/re;

    const/4 v2, 0x0

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/qe;

    invoke-virtual {v1, v0}, Les/re;->a(Les/qe;)V

    .line 31
    :cond_6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->d:Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImagePreviewController;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->e:Les/re;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImagePreviewController;->a(Les/re;)V

    .line 32
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->e:Les/re;

    invoke-virtual {v0}, Les/re;->h()V

    .line 33
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->y()V

    return-void
.end method

.method private F()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->f:Landroid/animation/ObjectAnimator;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->removeAllListeners()V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->f:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->end()V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->f:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->cancel()V

    const/4 v0, 0x0

    .line 5
    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->f:Landroid/animation/ObjectAnimator;

    :cond_0
    return-void
.end method

.method private G()V
    .locals 5

    .line 1
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Les/y4;->durec_emoji_dialog_layout:I

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 2
    sget v1, Les/x4;->emoji_title:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    const/16 v2, 0x8

    invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 3
    sget v1, Les/x4;->emoji_icon:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 4
    sget v2, Les/w4;->durec_video_merge_size_different_dialog_icon:I

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 5
    sget v1, Les/x4;->emoji_message:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 6
    sget v2, Les/z4;->durec_video_size_different_dialog_msg:I

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(I)V

    .line 7
    invoke-virtual {v0}, Landroid/view/View;->getPaddingLeft()I

    move-result v1

    invoke-virtual {v0}, Landroid/view/View;->getPaddingRight()I

    move-result v2

    invoke-virtual {v0}, Landroid/view/View;->getPaddingBottom()I

    move-result v3

    const/4 v4, 0x0

    invoke-virtual {v0, v1, v4, v2, v3}, Landroid/view/View;->setPadding(IIII)V

    .line 8
    new-instance v1, Lcom/esfile/screen/recorder/ui/a$e;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/ui/a$e;-><init>(Landroid/content/Context;)V

    .line 9
    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/ui/a$e;->a(Landroid/view/View;)Lcom/esfile/screen/recorder/ui/a$e;

    const/4 v0, 0x1

    .line 10
    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/ui/a$e;->b(Z)Lcom/esfile/screen/recorder/ui/a$e;

    .line 11
    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/ui/a$e;->a(Z)Lcom/esfile/screen/recorder/ui/a$e;

    sget v0, Les/z4;->durec_common_confirm:I

    new-instance v2, Lcom/esfile/screen/recorder/videos/merge/r;

    invoke-direct {v2, p0}, Lcom/esfile/screen/recorder/videos/merge/r;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;)V

    .line 12
    invoke-virtual {v1, v0, v2}, Lcom/esfile/screen/recorder/ui/a$e;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/esfile/screen/recorder/ui/a$e;

    .line 13
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/ui/a$e;->b()Lcom/esfile/screen/recorder/ui/a;

    return-void
.end method

.method private H()V
    .locals 2

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/videos/merge/x;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/merge/x;-><init>(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;)V

    const-string v1, "stitch"

    invoke-static {v0, v1}, Les/s4;->a(Les/s4$a;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;)Landroid/widget/ImageView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->c:Landroid/widget/ImageView;

    return-object p0
.end method

.method public static a(Landroid/content/Context;Ljava/util/ArrayList;Ljava/lang/Runnable;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/ArrayList<",
            "Lcom/esfile/screen/recorder/videos/merge/b0;",
            ">;",
            "Ljava/lang/Runnable;",
            ")V"
        }
    .end annotation

    .line 3
    sput-object p1, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->m:Ljava/util/ArrayList;

    .line 4
    sput-object p2, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->n:Ljava/lang/Runnable;

    .line 5
    new-instance p1, Landroid/content/Intent;

    const-class p2, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;

    invoke-direct {p1, p0, p2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 6
    invoke-virtual {p0, p1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;Ljava/lang/Exception;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->a(Ljava/lang/Exception;)V

    return-void
.end method

.method static synthetic a(Les/qe;)V
    .locals 1

    .line 12
    iget-object p0, p0, Les/qe;->b:Ljava/lang/String;

    const-string v0, "video"

    invoke-static {p0, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result p0

    if-eqz p0, :cond_0

    const p0, 0x1040011

    .line 13
    invoke-static {p0}, Les/ec;->a(I)V

    :cond_0
    return-void
.end method

.method private a(Ljava/lang/Exception;)V
    .locals 1

    .line 16
    instance-of v0, p1, Lcom/esfile/screen/recorder/media/util/ExceptionUtil$UnsupportedFileException;

    if-eqz v0, :cond_0

    .line 17
    invoke-virtual {p0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    sget v0, Les/z4;->durec_merge_video_fail_by_not_available:I

    invoke-static {p1, v0}, Les/ec;->a(Landroid/content/Context;I)V

    goto :goto_0

    .line 18
    :cond_0
    instance-of v0, p1, Lcom/esfile/screen/recorder/media/util/ExceptionUtil$OutOfSpaceException;

    if-eqz v0, :cond_1

    .line 19
    sget p1, Les/z4;->durec_cut_video_no_space:I

    invoke-static {p1}, Les/ec;->a(I)V

    goto :goto_0

    .line 20
    :cond_1
    instance-of p1, p1, Ljava/io/FileNotFoundException;

    if-eqz p1, :cond_2

    .line 21
    invoke-virtual {p0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    sget v0, Les/z4;->durec_video_not_found:I

    invoke-static {p1, v0}, Les/ec;->a(Landroid/content/Context;I)V

    goto :goto_0

    .line 22
    :cond_2
    invoke-virtual {p0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    sget v0, Les/z4;->durec_common_video_fail:I

    invoke-static {p1, v0}, Les/ec;->a(Landroid/content/Context;I)V

    :goto_0
    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;)Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->i:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    return-object p0
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;)Ljava/util/List;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->k:Ljava/util/List;

    return-object p0
.end method

.method private f(Ljava/util/List;)Z
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/esfile/screen/recorder/videos/merge/b0;",
            ">;)Z"
        }
    .end annotation

    if-eqz p1, :cond_5

    .line 1
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_5

    .line 2
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    const/4 v0, -0x1

    const/4 v1, -0x1

    :cond_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_4

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/esfile/screen/recorder/videos/merge/b0;

    .line 3
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->h()I

    move-result v3

    .line 4
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/videos/merge/b0;->b()I

    move-result v2

    if-gtz v0, :cond_1

    move v0, v3

    :cond_1
    if-gtz v1, :cond_2

    move v1, v2

    :cond_2
    if-ne v0, v3, :cond_3

    if-eq v1, v2, :cond_0

    :cond_3
    const/4 p1, 0x1

    return p1

    :cond_4
    const/4 p1, 0x0

    return p1

    .line 5
    :cond_5
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "path list is empty!"

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    goto :goto_1

    :goto_0
    throw p1

    :goto_1
    goto :goto_0
.end method


# virtual methods
.method public synthetic a(Landroid/content/DialogInterface;I)V
    .locals 0

    .line 23
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->H()V

    .line 24
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    return-void
.end method

.method public synthetic a(Landroid/view/View;)V
    .locals 0

    .line 11
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method public synthetic a(Landroid/os/Message;)Z
    .locals 1

    .line 14
    iget p1, p1, Landroid/os/Message;->what:I

    const/4 v0, 0x1

    if-eq p1, v0, :cond_0

    goto :goto_0

    .line 15
    :cond_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->v()V

    :goto_0
    const/4 p1, 0x0

    return p1
.end method

.method public synthetic a(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 0

    .line 7
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result p1

    if-nez p1, :cond_1

    .line 8
    iget-boolean p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->g:Z

    if-eqz p1, :cond_0

    .line 9
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->v()V

    goto :goto_0

    .line 10
    :cond_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->y()V

    :cond_1
    :goto_0
    const/4 p1, 0x0

    return p1
.end method

.method public synthetic b(Landroid/view/View;)V
    .locals 0

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->D()V

    return-void
.end method

.method public synthetic c(Landroid/view/View;)V
    .locals 0

    .line 2
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->j:Lcom/esfile/screen/recorder/videos/merge/a0;

    if-eqz p1, :cond_0

    .line 3
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/videos/merge/a0;->a()V

    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/base/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p1

    const/16 v0, 0x400

    invoke-virtual {p1, v0}, Landroid/view/Window;->addFlags(I)V

    .line 3
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p1

    const/16 v0, 0x80

    invoke-virtual {p1, v0}, Landroid/view/Window;->addFlags(I)V

    .line 4
    sget p1, Les/y4;->durec_merge_video_and_image_preview_activity:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->setContentView(I)V

    .line 5
    sget-object p1, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->m:Ljava/util/ArrayList;

    if-nez p1, :cond_0

    .line 6
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void

    .line 7
    :cond_0
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->C()V

    .line 8
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->E()V

    return-void
.end method

.method protected onDestroy()V
    .locals 2

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->F()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->h:Landroid/os/Handler;

    if-eqz v0, :cond_0

    const/4 v1, 0x0

    .line 3
    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->e:Les/re;

    if-eqz v0, :cond_1

    .line 5
    invoke-virtual {v0}, Les/re;->i()V

    .line 6
    :cond_1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onDestroy()V

    return-void
.end method

.method public u()Ljava/lang/String;
    .locals 1

    const-string v0, "MergeVideoAndImagePreviewActivity"

    return-object v0
.end method

.method public v()V
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->g:Z

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->w()V

    :cond_0
    return-void
.end method

.method protected w()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->f:Landroid/animation/ObjectAnimator;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->isRunning()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->g:Z

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->d:Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImagePreviewController;

    const/4 v2, 0x1

    new-array v2, v2, [F

    const/4 v3, 0x0

    aput v3, v2, v0

    const-string v0, "alpha"

    invoke-static {v1, v0, v2}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->f:Landroid/animation/ObjectAnimator;

    const-wide/16 v1, 0x12c

    .line 4
    invoke-virtual {v0, v1, v2}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->f:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    return-void
.end method

.method public synthetic x()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->j:Lcom/esfile/screen/recorder/videos/merge/a0;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/merge/a0;->a()V

    .line 3
    :cond_0
    new-instance v0, Lcom/esfile/screen/recorder/videos/merge/a0;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->k:Ljava/util/List;

    invoke-direct {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/a0;-><init>(Ljava/util/List;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->j:Lcom/esfile/screen/recorder/videos/merge/a0;

    .line 4
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->l:Lcom/esfile/screen/recorder/videos/merge/a0$b;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/merge/a0;->a(Lcom/esfile/screen/recorder/videos/merge/a0$b;)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->j:Lcom/esfile/screen/recorder/videos/merge/a0;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/merge/a0;->b()V

    .line 6
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method public y()V
    .locals 4

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->g:Z

    if-nez v0, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->z()V

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->h:Landroid/os/Handler;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->h:Landroid/os/Handler;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object v0

    .line 5
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->h:Landroid/os/Handler;

    const-wide/16 v2, 0xbb8

    invoke-virtual {v1, v0, v2, v3}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    return-void
.end method

.method protected z()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->f:Landroid/animation/ObjectAnimator;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->isRunning()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->g:Z

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->d:Lcom/esfile/screen/recorder/videos/merge/ui/MergeVideoImagePreviewController;

    new-array v0, v0, [F

    const/4 v2, 0x0

    const/high16 v3, 0x3f800000    # 1.0f

    aput v3, v0, v2

    const-string v2, "alpha"

    invoke-static {v1, v2, v0}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->f:Landroid/animation/ObjectAnimator;

    const-wide/16 v1, 0x12c

    .line 4
    invoke-virtual {v0, v1, v2}, Landroid/animation/ObjectAnimator;->setDuration(J)Landroid/animation/ObjectAnimator;

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/merge/MergeVideoAndImagePreviewActivity;->f:Landroid/animation/ObjectAnimator;

    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    return-void
.end method
